home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore 64 Scene Diskmags Assortment
/
Mega_magazine_1_19xx_Venturi.d64
/
kasyno v1
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
3KB
|
122 lines
1 a=500
10 poke53281,0:poke53280,0:poke646,1:printchr$(147)
20 print" piotr stachowiak przedstawia"
30 print" gre pod tytu\em"
40 print""
50 print" [166] [166] [166][166] [166][166] [166] [166] [166] [166] [166][166] "
60 print" [166] [166] [166] [166] [166] [166] [166] [166][166] [166] [166] [166]"
70 print" [166][166] [166][166][166][166] [166][166] [166] [166] [166] [166] [166] [166]"
80 print" [166] [166] [166] [166] [166] [166] [166] [166][166] [166] [166]"
90 print" [166] [166] [166] [166] [166][166] [166] [166] [166] [166][166] "
100 print""
110 print" , ,"
120 print" to prosta gra w kosci w ktorej musisz "
130 print" ,"
140 print"wygrac 100000 $ , posiadasz tylko 500 $"
150 print""
160 print""
170 print""
180 print""
190 print""
200 print""
210 print""
220 print""
230 print""
240 print" space"
250 geta$:ifa$=""then goto250
260 printchr$(147)
261 ifa=>100000then goto950
262 ifa=<0thengoto970
263 b=0
270 print"posiadasz : "a"$"
280 print""
290 print"ile stawiasz ?"
300 print""
301 inputc
302 ifc>athen goto260
303 ifc<=0then goto260
305 print"jaka twoim zdaniem liczbe wylosuje ???"
306 print" ' '"
307 print""
309 getb:ifb=0then goto309
310 ifb>=7thengoto260
320 ifb<=0thengoto260
340 i=int(rnd(1)*6)+1
350 ifi=1thengoto420
360 ifi=2thengoto500
370 ifi=3thengoto580
380 ifi=4thengoto660
390 ifi=5thengoto740
400 ifi=6thengoto820
420 printchr$(147)
430 print"wylosowa\em [213][195][195][195][201]
440 [153]" peek peek
450 print" [194] [209] [194]
460 [153]" peek peek
470 print" [202][195][195][195][203]
480 [161]f$:[139]f$[178]""[167][137]480
490 [139]b[178]i[167][137]930
491 [139]b[179][177]i[167][137]900
500 [153][199](147)
510 [153]"wylosowa\em (NULL)lenlenlenright$
520 print" [194] [209][194]
530 [153]" peek peek
540 print" [194][209] [194]
550 [153]" mid$lenlenlen(NULL)
560 getf$:iff$=""thengoto560
570 ifb=ithengoto930
571 ifb<>ithengoto900
580 printchr$(147)
590 print"wylosowa\em [213][195][195][195][201]
600 [153]" peek (NULL)peek
610 print" [194] [209] [194]
620 [153]" peek(NULL) peek
630 print" [202][195][195][195][203]
640 [161]f$:[139]f$[178]""[167][137]640
650 [139]b[178]i[167][137]930
651 [139]b[179][177]i[167][137]900
660 [153][199](147)
670 [153]"wylosowa\em (NULL)lenlenlenright$
680 print" [194][209] [209][194]
690 [153]" peek peek
700 print" [194][209] [209][194]
710 [153]" mid$lenlenlen(NULL)
720 getf$:iff$=""thengoto720
730 ifc=ithengoto930
731 ifc<>ithengoto900
740 printchr$(147)
750 print"wylosowa\em [213][195][195][195][201]
760 [153]" peek(NULL) (NULL)peek
770 print" [194] [209] [194]
780 [153]" peek(NULL) (NULL)peek
790 print" [202][195][195][195][203]
800 [161]f$:[139]f$[178]""[167][137]800
810 [139]b[178]i[167][137]930
811 [139]b[179][177]i[167][137]900
820 [153][199](147)
830 [153]"wylosowa\em (NULL)lenlenlenright$
840 print" [194][209] [209][194]
850 [153]" peek(NULL) (NULL)peek
860 print" [194][209] [209][194]
870 [153]" mid$lenlenlen(NULL)
880 getf$:iff$=""thengoto880
890 ifb=ithengoto930
891 ifb<>ithengoto900
895 :
900 print"nieuda\o ci sie , tracisz : "c:a=a-c
910 getf$:iff$=""thengoto910
920 goto260
930 print"zyskujesz : "c:a=a+c
940 getf$:iff$=""thengoto940
950 goto260
960 print"brawo ! brawo ! brawo ! brawo ! brawo !"
962 print"w twojej kieszeni jest 100000 $"
964 print"to koniec gry 'kasyno'"
966 getf$:iff$=""thengoto966
968 new
970 print" ,"
975 print"jestes bankrutem partaczu !!!"
980 print"to koniec gry 'kasyno'"
985 getf$:iff$=""thengoto985
990 new